<?php $this->load->view('templates/a_header'); ?>


	<div class="customer_search_results">
<?php 				
if (!empty($result)){
    echo '<h2>Search result:</h2>';
	echo '
			<table>
				<thead>
					<tr>
						<th>Id</th>
						<th>Name</th>
						<th>Phone</th>
						<th>Address</th>
						<th>Type</th>
					</tr>
				</thead>';
	foreach ($result as $row){
		echo '<tr>';
			echo '<td id="table_short">';
				echo '<a href="#" id="table_short">';
					echo $row['ID'];
				echo '</a>';
			echo '</td>';
			
			echo '<td>';
				echo '<a href="#">';
					echo $row['name'];
				echo '</a>';
			echo '</td>';
			
			echo '<td>';
				echo '<a href="#">';
					echo $row['phone'];
				echo '</a>';
			echo '</td>';
			
			echo '<td>';
				echo '<a href="#">';
					echo $row['address'];
				echo '</a>';
			echo '</td>';
			
			echo '<td  id="table_short">';
				echo '<a href="#"  id="table_short">';
					echo $row['type'];
				echo '</a>';
			echo '</td>';
		echo '</tr>';
		
	}
	
	echo '</table>';
    
}
?>
</div>


<?php echo $this->load->view('templates/footer'); ?>